package com.weipai.education.enums;

public enum RetCode {

    SUCCESS(200, "成功"),
    REQUEST_ERROR(500, "请求失败"),
    NOT_FIND_ORDERNUMBER(401,"未找到订单号"),
    NOT_LOGIN(-1, "尚未登录"),
    NOT_ADDRESS(401, "请添加收货地址"),
    NOT_DATA(401, "暂无数据"),
    NO_CLIENT(401,"您目前没有客户"),
    No_ALLIANCEBUSINESS(401, "您目前没有加盟商"),
    NOT_FIND(401, "该产品无货"),
    HEADSET(401, "需要填写条形码数字"),
    RELEVANCE_DATA(401, "有账号使用此角色，请解绑"),
    NO_BUY(401, "请去后台添加库存"),
    NO_SUPERIOR(401, "未获取到此用户的开通人信息"),
    USER_NO_AUDIT(401, "账号未审核"),
    USER_REFUSE(401, "审核被拒"),
    BLOCK_UP(401, "账号被冻结"),
    NO_USER(401, "未找到此用户"),
    DIFFERENT_PASSWORD(401, "两次密码不一致，请重新输入"),
    SAME_OLD_PASSWORD(401, "新旧密码相同,请重新输入"),
    ERROR_PASSWORD(401, "密码有误，请重新输入"),
    CATE_HAVE_PRODUCT_DELETE(401, "此分类下有关联商品，请勿删除"),
    CATE_HAVE_PRODUCT_CHANGE(401, "此分类下有关联商品，请勿停用"),
    CATE_HAVE_USER_CHANGE(401, "此分类下有关联经销商账号，请勿停用"),
    ERROR_ACCOUNT_NUMBER(401, "推荐码错误，请重新输入"),
    CATE_HAVE_ACTIVITY_DELETE(401, "此分类有关联活动，请勿删除"),
    CATE_HAVE_ACTIVITY_CHANGE(401, "此分类有关联活动，请勿停用"),
    NOT_USE(401, "此区域已有加盟商，不能添加账号"),
    
    NO_USER_CATE_ID(401,"经销商类别id不能为空"),
    NO_PRODUCT_PRICE(401,"产品价格不能为空"),

    SMS_CODE_SEND_ERROR(503, "验证码发送失败"),
    
    IMG_FORMAT(501, "上传图片格式暂不支持"),
    IMG_SIZE(502, "上传的文件不能超过5M"),
    IMG_ERROR(500, "服务器错误,上传图片失败"), 
    PWD_ERROR(500, "密码错误"), 
    PURCHASE_HAVE_OUTBOUND(401, "此订单已出库，请无重复操作"), 
    PURCHASE_HAVE_INBOUND(401, "此订单已入库，请无重复操作"), 
    UNDER_STOCK(401, "库存不足"),
    No_ACTIVITY(401, "您没有申请过活动"),
    LOGIN_FAIL(500, "登录失败"), 
    USER_MOBILE(401, "此手机号已注册"), 
    SELL_USER(401, "请指定为经销商类型"), 
    NOT_USER(401, "未找到此经销商"), 
    PERMISSION_DENIED(401, "权限不足"),
    NO_PRODUCT_ID(401,"产品不能为空" ),
    NO_GOODSBAR(401,"产品货号不能为空" ),
    NO_AGREEMENT(401,"产品货号与退货申请数量不一致" );

    private int code;
    private String msg;

    RetCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
